package org.jeecg.modules.engineering.service.impl;

import org.jeecg.modules.engineering.entity.EquipEventNoticeType;
import org.jeecg.modules.engineering.mapper.EquipEventNoticeTypeMapper;
import org.jeecg.modules.engineering.service.IEquipEventNoticeTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 事件通知类型表
 * @Author: jeecg-boot
 * @Date:   2019-09-28
 * @Version: V1.0
 */
@Service
public class EquipEventNoticeTypeServiceImpl extends ServiceImpl<EquipEventNoticeTypeMapper, EquipEventNoticeType> implements IEquipEventNoticeTypeService {

    @Autowired
    private EquipEventNoticeTypeMapper equipEventNoticeTypeMapper;

    @Override
    public boolean checkHave(String projectId, String eventId, String id) {
        long count = equipEventNoticeTypeMapper.getCount(projectId,eventId,id);

        return count > 0;
    }
}
